
$(function () {
    var goods_id = parseInt(GetQueryString('goods_id'));
    var html_data = {
        baseConfig: baseConfig,
        sessionid: '',
        sessionid_q: '',
        goods_info:{},
        comment_list:[],
        user_group_list:[],
        ceng:5,
        goods_order_item: []

    };
    var app = new Vue({
        el: '#address_modefy',
        data: html_data,
        methods: {
            price_filter: price_filter,

            ceng_jian:function(){
                if(html_data.ceng==1){
                    return
                }
                api.an.set_friends_by_step({step:html_data.ceng-1}).then(function (data) {

                    html_data.ceng = data.result.step;
                    html_data.user_group_list = data.result.user_group_list;

                });
            },
            ceng_jia:function(){
                if(html_data.ceng==8){
                    return
                }
                api.an.set_friends_by_step({step:html_data.ceng+1}).then(function (data) {

                    html_data.ceng = data.result.step;
                    html_data.user_group_list = data.result.user_group_list;

                });
            },

            page_back: function () {
                baseConfig.page_back();
            }
        }
    });

    html_data.sessionid = GetQueryString('sessionid');
    if (html_data.sessionid) {
        html_data.sessionid_q = "sessionid=" + html_data.sessionid;
        client_storage('sessionid', html_data.sessionid);
    }


        api.an.set_friends_by_step().then(function (data) {

            html_data.ceng = data.result.step;
            html_data.user_group_list = data.result.user_group_list;

        });




});
